﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class StringTools  {

	public static string BuildStr(List<string> ListStr,string str ){
		if(ListStr == null){
			return str;
		}

		for( int i = 0 ; i < ListStr.Count ; i++ ){
			if( str.IndexOf('%') != -1 ){
				string strHead = str.Substring (0, str.IndexOf ('%'));
				string strTail = str.Substring (str.IndexOf ('%')+1,str.Length - (str.IndexOf ('%')+1));
				str = strHead + ListStr [i] + strTail;
			}
		}
		return str;
	}
}
